import request from '@/utils/request'

// 查看办公用品列表
export function goodsList(date) {
  return request({
    url: '/administration/goods/list',
    method: 'post',
    data:date
  })
}

// 添加办公用品
export function saveGoods(data) {
  return request({
    url: '/administration/goods/saveGoods',
    method: 'post',
    data:data,
  })
}

// 获取办公用品
export function getByIdGoods(data) {
  return request({
    url: '/administration/goods/getByIdGoods',
    method: 'post',
    data:data,
  })
}

// 删除（逻辑删除修改状态位）办公用品
export function deleteGoods(data) {
  return request({
    url: '/administration/goods/deleteGoods',
    method: 'post',
    data:data,
  })
}

// 获取选择物品的当前库存数
export function getGoodsRemainderNumbers(date) {
  return request({
    url: '/administration/goods/getGoodsRemainderNumbers',
    method: 'post',
    data:date
  })
}

//根据物品分类id
export function getByGoodsSortsNoidGoods(date){
  return request({
    url: '/administration/goods/getByGoodsSortsNoidGoods',
    method: 'post',
    data:date
  })
}

//获取物品统计列表
export function getGoodsStatisticsList(date){
  return request({
    url: '/administration/goods/getGoodsStatisticsList',
    method: 'post',
    data:date
  })
}

//获取没有分页的物品列表
export function getGoodsAllList(){
  return request({
    url: '/administration/goods/getGoodsAllList',
    method: 'post',
  })
}

